package statePattern;

public class State2 extends State {

	public State2(StateMachine machine) {
		super(machine);
		stateCode = 2;
	}

	@Override
	public void action1() {
		System.out.println("Nothing to do");

	}

	@Override
	public void action2() {
		System.out.println("Switch state 2 to state 3");
		machine.setState(machine.getState3());
	}

	@Override
	public void action3() {
		System.out.println("Nothing to do");
	}

}
